import React from "react";
import { useParams, useLocation, useNavigate } from 'react-router-dom'
function withRouter(Component) {
    return (props) => (
        <Component
            {...props}
            params={useParams()}
            location={useLocation()}
            navigate={useNavigate()}
        />
    );
}
class Cinfo extends React.Component {
    constructor() {
        super()
    }
    render() {
       console.log(this.props.location.search);
        const query = new URLSearchParams(this.props.location.search)
        console.log(query.get('id'));
        return <div>列表详情</div>
    }
}
export default withRouter(Cinfo)